angular.module('app.routes', [])

.config(function($stateProvider, $urlRouterProvider) {

  // Ionic uses AngularUI Router which uses the concept of states
  // Learn more here: https://github.com/angular-ui/ui-router
  // Set up the various states which the app can be in.
  // Each state's controller can be found in controllers.js
  $stateProvider

    .state('login', {
    url: '/login',
    templateUrl: 'templates/login.html',
    controller: 'loginCtrl',

 })

  // .state('signup', {
  //   url: '/page2',
  //   templateUrl: 'templates/signup.html',
  //   controller: 'signupCtrl'
  // })

  .state('page', {
    url: '/askpage',
    templateUrl: 'templates/page.html',
    controller: 'pageCtrl',
    params: {'stunum': null,'askcode':null,'mode':null,'index':null}
  })

$urlRouterProvider.otherwise('/login')



});
